// components/nav-bar.js
Component({
    data:{
        wk:""
    },
    properties:{
        word:{
            type:String,
            value:""
        }
    },
    methods: {
        userInput(e){
            console.log(e);
            this.setData({
                wk:e.detail.value
            })
        },
        searchPage:function() {
            console.log(this.data.wk);
            wx.navigateTo({
                url: '/pages/search/search?wk='+this.data.wk+"&aa=cc",
            });
            
        }
    }
})
